package com.zcpt.controller.order;

import com.zcpt.order.IOrderService;
import com.zcpt.pojo.order.Order;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/order")
public class OrderController {
    @Reference
    private IOrderService orderService;

    @PostMapping("/addOrder")
    public String addOrder(Order order){
        System.out.println(order);
//        orderService.addOrder(order);
        return "forward:/pay-money.html";
    }
}
